package br.ufpb.di.ppgi.util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class HibernateUtils {
	private final static EntityManagerFactory factory = Persistence.createEntityManagerFactory("ppgi");
	
	public static EntityManagerFactory getFactory() {
		return factory;
	}
	
	public static void main(String args[]) {
//		EntityManager manager = factory.createEntityManager();
//		manager.setFlushMode(FlushModeType.AUTO);
//		
//		factory.close();
	}
}
